<?php


namespace app\api\library\index\getArticle;


use think\facade\Db;

class V
{
    public static function run($param)
    {
        $articleId = _checkEmptyParam($param[ 'articleId' ], '文章ID不能为空');
        $article   = Db::name('mall_article')->where([['id', '=', $articleId], ['delete_time', '=', null]])->find();
        if (empty($article)) {
            _outPut(204, [], '文章不存在或已删除');
        }
        _outPut(200, $article);
    }
}